package com.example.spzx.Mapper;

import com.example.spzx.model.dto.system.SysUserDto;
import com.example.spzx.model.entity.system.SysUser;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface SysUserMapper {
    SysUser selectByUserName(String userName);

    Page<SysUser> getlist(SysUserDto sysUserDto);

    void add(SysUser sysUser);
@Select("select * from sys_user where id=#{id}")
    SysUser selectById(Long id);

    void update(SysUser sysUser1);
@Delete("delete from sys_user where id=#{id}")
    void delete(Integer id);
}
